package messwertrechner;

/**
 * Contains one measurement with the time in seconds
 * when it was measured
 *
 * @author Benedikt Markt
 *
 */
public class Data {
	private int time;
	private double value;
	
	/**
	 * @author Benedikt Markt
	 *
	 * @param time time when the measurement was taken
	 * @param value of the measurement
	 */
	public Data(int time, double value) {
		this.time = time;
		this.value = value;
	}

	/**
	 *
	 * @author Benedikt Markt
	 *
	 * @return the time when the measurement was taken
	 */
	public int getTime() {
		return this.time;
	}

	/**
	 *
	 * @author Benedikt Markt
	 *
	 * @param time the time when the measurement was taken
	 */
	public void setTime(int time) {
		this.time = time;
	}

	/**
	 *
	 * @author Benedikt Markt
	 *
	 * @return the value of the measurement
	 */
	public double getValue() {
		return this.value;
	}

	/**
	 *
	 * @author Benedikt Markt
	 *
	 * @param value the value of the measurement
	 */
	public void setValue(double value) {
		this.value = value;
	}
	
	
	
}
